package proto_wearebatman;

public class Led implements IhasInput {

    private Input input;
    private String name;
    private Wire wire;

    public Led(String name) {
        this.input = new Input();
        this.name = name;

        // Proto Output
        Main.println("Led created: " + this.name);
    }

    public void setInputData(int pin, int data) {
        this.input.setData(data);
    }

    public void operate() {
        //Main.println(this.name + ".operate() | Data = "+this.input.getData());
    }

    public int getInputData(int pin) {
        return this.input.getData();
    }

    public void connectWireInput(int pin, Wire wire) {
        this.wire = wire;
    }

    public String getName() {
        return this.name;
    }

    public void resetCounter() {

    }

    public String getFinalState() {
        return Integer.toString(this.input.getData());
    }
}
